public class Test {
    public static void main3(String[] args) {
        Integer ii = 100;//200
        Integer ii1 = 100;//200
        System.out.println(ii = ii1);
//        System.out.println(ii = ii1);结果为200时，不相等。（源码）

    }
    public static void main2(String[] args) {
        int a = 1;
        Integer i1 = Integer.valueOf(a);//手动装箱

        Integer ii2 = new Integer(1);
        int b = ii2.intValue();//手动拆箱
        double d = ii2.doubleValue();
        System.out.println(i1);
        System.out.println(b);
        System.out.println(d);
    }
    public static void main1(String[] args) {
        int a = 1;
        Integer ii = a;//自动装箱

        Integer ii1 = new Integer(1);
        int a1 = ii1;//自动拆箱
        System.out.println(ii);
        System.out.println(a1);
    }
    public void rotate(int[] nums, int k) {

    }
}
